<?php
/**
 * Aggregates all files listed in $CFG['js_files_aggregate'] array into one file.
 */

require_once("../application/psa/config.php");

// tell browser to cache this file.
header('Cache-Control: max-age=2592000');
header('Expires-Active: On');
header('Expires: Fri, 1 Jan 2500 01:01:01 GMT');
header('Content-type: text/javascript; charset=utf-8');

// include all files in $CFG['js_files_aggregate'] array
if(is_array(@$CFG['js_files_aggregate'])){
	foreach ($CFG['js_files_aggregate'] as $key => $value) {
		include_once ('../' . $value);
	}
}
?>